package modules

import (
	"os"
	"path/filepath"
)

// 根据海报配置进行绘图
func Draw(poster *Poster) {
	canvas := createCanvas(poster)
	drawImages(poster, canvas)
	drawWords(poster, canvas)
	drawLines(poster, canvas)
	savePoster(poster, canvas)
}

// 删除所有download文件
func DeleteDownloadFiles(path string) {
	os.RemoveAll(filepath.Join(path, "downloads"))
}
